<?php defined('KX_ROOT') || exit('Permission denied');?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title>超级VIP - <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?></title>
    <link rel="stylesheet" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/css/global.css"/>
    <script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/flexible.min.js"></script>
</head>
<body>
<div class="w100">
    <div class="w100 bg-red flex-wrp flex-align-center flex-between lh100 plr15 ptb15">
        <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/images/return-white2.png" class="pt-return">
        <div class="size18 color1">超级VIP</div>
        <div></div>
    </div>
    <div class="bg-red color1 pt10 pl20">
        <img src="<?php echo $userinfo['avatar'];?>" alt="<?php echo $userinfo['nickname']?:$userinfo['name'];?>" class="pt-avatar">
        <div class="inline-block pl10" style="position: absolute; margin-top: 7px;">
            <?php $isvip=\Kuxin\Block::show('user.isvip', ['userid'=>$userinfo['id']]);?>
            <?php if($isvip):?>
            <h1 class="size16">尊敬的VIP会员您好</h1>
            <p class="size14">您的VIP于<?php echo \Kuxin\View::date($userinfo['vip_expire_time'],'Y-m-d');?>日到期</p>
            <?php else:?>
            <h1 class="size16">尊敬的用户您好</h1>
            <p class="size14">您还未开通超级VIP</p>
            <?php endif;?>
        </div>
        <a class="fr mt15 mr10 color1" style="padding:0 10px;border: 2px solid #fff;border-radius: 20px;" href="<?php echo \Kuxin\Helper\Url::build("user.pay.vip",[],"");?>"><?php echo $isvip?'续费VIP':'开通VIP';?></a>
    </div>
    <div class="bg-red bold pt20 mb10">
        <div class="pl10"></div>
        <div class="bg-white plr10 text-center ptb20" style="border-radius:20px 20px 0 0;">
            <div class="inline-block" style="border: 1px solid #e9e9e9;border-radius: 3px;padding: 10px;;">
                <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/images/vip_benefit_1.png" alt="折扣优惠" style="width: .3rem">
                <p class="color32">折扣优惠</p>
                <span class="size12">章节订阅更多折扣</span>
            </div>
            <div class="inline-block" style="border: 1px solid #e9e9e9;border-radius: 3px;padding: 10px;;">
                <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/images/vip_benefit_2.png" alt="首充大礼" style="width: .3rem">
                <p class="color32">首充大礼</p>
                <span class="size12">海量经验大放送</span>
            </div>
            <div class="inline-block" style="border: 1px solid #e9e9e9;border-radius: 3px;padding: 10px;;">
                <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/images/vip_benefit_3.png" alt="免费阅读" style="width: .3rem">
                <p class="color32">免费阅读</p>
                <span class="size12">海量书籍免费阅读</span>
            </div>
        </div>
    </div>

    <div class="bg-white mb10 pt-list pl10">
        <h1 class="color32 bold size16 pl10" style="border-left: 6px solid #f55;">VIP免费阅读</h1>
        <?php $novellist=\Kuxin\Block::show('novel.list', ['userid'=>$userinfo['id'],'num'=>10,'type'=>2]);?>
        <?php if(empty($novellist)):?>
        <div class="flex-wrp pt-stick-item">
            您似乎来到了没有数据存在的荒原~~~
        </div>
        <?php else:?>
        <div class="free_for_vip size12">
            <div>
                <div class="color32">书籍名称</div>
                <div class="color32">作者</div>
                <div class="color32">分类</div>
                <div class="color32">字数</div>
            </div>
            <?php if(is_array($novellist) && (array()!=$novellist)): $i=array(); $i['loop']=array_slice($novellist,0,null,true); $i['total']=count($novellist); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $loop=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
            <div>
                <div><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>">《<?php echo $loop['novel']['name'];?>》</a></div>
                <div><a href="<?php echo \Kuxin\Helper\Url::build("author.space.index",['authorid'=>$loop['author']['id'],'pinyin'=>$loop['author']['pinyin'],'name'=>$loop['author']['name']],"");?>"><?php echo $loop['author']['name'];?></a></div>
                <div><a href="<?php echo \Kuxin\Helper\Url::build("novel.category.list",['categoryid'=>$loop['category']['id'],'key'=>$loop['category']['key']],"");?>"><?php echo $loop['category']['name'];?></a></div>
                <div><?php echo $loop['data']['words'];?>万</div>
            </div>
            <?php endforeach; endif;?>
        </div>
        <?php endif;?>

    </div>
</div>

<!-- 底部版权 -->
<div class="pt-copyright">
    <div class="size12  w100 text-center mt15 mb10"><a title="隐私声明" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'privacy'],"");?>" class="color4">隐私声明</a> | <a title="免责声明" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'disdaimer'],"");?>" class="color4">免责声明</a> | <a title="关于我们" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'about'],"");?>" class="color4">关于我们</a></div>
    <div class="size12 color4 w100 text-center mb10">Copyright © 2009-<?php echo date(Y);?> <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "beian");?></div>
    <div class="size12  w100 text-center"><?php echo \Kuxin\Response::runinfo();?></div>
</div>
<!-- js -->
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/jquery-3.3.1.js"></script>
<script>
    $('.pt-return,.pt-recall').click(function(){
        window.history.back();
    });
    $('.pt-ellipsis').click(function(){
        $('.pt-tip').toggle()
    });
    $('.pt-tip .pt-tip-item').click(function(){
        $('.pt-tip').toggle()
    });
</script>
<div class="none">
    <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "tongji.mobile");?>
    <?php if(\Kuxin\Helper\Arr::getValue($_kxcms_config, "app.use_cdn")):?>
    <script src="/api/stat/novel/info.js"></script>
    <script src="/api/stat/novel/read.js"></script>
    <?php endif;?>
</div>
</body>
</html>